package com.itcase.innerclass.Demo02;

/*
内部类案例
*/
public class Person {
    private String name;

    public Person() {
    }

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 内部类
     */
    public class Heart{
        public void baet(){
            System.out.println(name+"的心脏在跳动~~~");
        }
    }
}
